ac28c2d724c84350374f130490fe5dbc8e174439,jclouds-plugin/src/main/java/jenkins/plugins/jclouds/compute/JCloudsCloud.java,DescriptorImpl,doFillCloudCredentialsIdItems,#ItemGroup#,509
Before Change
return new ListBoxModel();
}
return new StandardUsernameListBoxModel().withAll(
CredentialsProvider.lookupCredentials(StandardUsernameCredentials.class, context, ACL.SYSTEM));
}
public ListBoxModel doFillCloudGlobalKeyIdItems(@AncestorInPath ItemGroup context) {
After Change
return m;
}
public ListBoxModel doFillCloudCredentialsIdItems(@AncestorInPath ItemGroup context, @QueryParameter String currentValue) {
if (!(context instanceof AccessControlled ? (AccessControlled) context : Jenkins.getActiveInstance()).hasPermission(Computer.CONFIGURE)) {
return new StandardUsernameListBoxModel().includeCurrentValue(currentValue);
}
return new StandardUsernameListBoxModel()
.includeAs(ACL.SYSTEM, context, StandardUsernameCredentials.class).includeCurrentValue(currentValue);
}
public ListBoxModel doFillCloudGlobalKeyIdItems(@AncestorInPath ItemGroup context, @QueryParameter String currentValue) {